package com.example.careycai.playactivity;

import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;

public class games_item extends Activity {

    private TextView gname;
    private TextView introduce;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_games_item);
        gname=(TextView)findViewById(R.id.gname);
        introduce=(TextView)findViewById(R.id.introduce);

        Intent intent=getIntent();
        String data= intent.getStringExtra("extra_data");
        gname.setText(data);

        introduce.setText("《逆战》，是由腾讯旗下琳琅天上工作室开发，腾讯游戏发行的网络游戏。游戏采用第一人称射击形式表现，采用虚幻3引擎开发，并且是以机甲模式为核心近未来风格游戏，游戏中出现了未来版95式突击步枪等武器。游戏有七个资料片：《机甲风暴》、《钢铁雄心》、《魔都惊魂》、《异族崛起》、《僵尸世界大战》和《血战尸骑士》《樱花武士》。曾用名“火力突击”，在测试阶段改名为“逆战”。");

    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.menu_games_item, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();

        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }

        return super.onOptionsItemSelected(item);
    }
}
